import time
now=time.time()
print(now)

obj=time.localtime()
print(obj)

obj2=time.localtime(60)
print(obj2)
print(type(obj2))
print(obj.tm_year)
print(obj.tm_mon)
print(obj.tm_mday)
print(obj.tm_hour)
print(obj.tm_min)
print(obj.tm_sec)
print(obj.tm_wday)
print(obj.tm_isdst)
print(time.ctime())

#日期时间格式化
print(time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time())))
print('%B月份的名称',time.strftime('%B',time.localtime()))
print('%A星期的名称',time.strftime('%A',time.localtime()))

print(time.strptime('2008-08-08','%Y-%m-%d'))

time.sleep(5)
print('加油加油')


